import org.junit.Test;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.ZoneId;

public class DateTimeFormat {
    @Test
    public void dateTimeFormat() {
        LocalDateTime time = LocalDateTime.now();

        System.out.println(Timestamp.valueOf("2019-10-12 11:22:18").getTime());
    }
}
